import { EnumManager } from "@/utils/enumManager";

export const ageUnits = Object.freeze({
  day: 1,
  month: 2,
  year: 3,
})

export const paymentMethodEnum = Object.freeze({
  period: 1,
  single: 2,
})

export const metaTypes = new EnumManager({
  0: "保险(基础保额)",
  1: "保险(自助理赔)",
  2: "药诊卡",
  3: "权益服务",
  4: "虚拟卡券",
  5: "实物",
});

export const formTypes = new EnumManager({
  1: "跳转自建链接",
  2: "跳转客服链接",
  3: "跳转三方链接",
  6: "荷叶线上商城",
  9: "益丰药诊卡"
});

export const dateUnits = new EnumManager({
  [ageUnits.day]: "天",
  [ageUnits.month]: "月",
  [ageUnits.year]: "周岁",
});

export const publishStatusEnum = Object.freeze({
  NO: 0,
  YES: 1,
});

export const publishStatus = new EnumManager({
  [publishStatusEnum.NO]: "未上架",
  [publishStatusEnum.YES]: "已上架",
});

export const paymentMethods = new EnumManager({
  [paymentMethodEnum.period]: "分期缴费",
  [paymentMethodEnum.single]: "趸交",
});

export const priceTypes = new EnumManager({
  1: "按固定价格",
  2: "按利率",
});

export const fileTypes = new EnumManager({
  // 10: "产品图片",
  11: "协议条款",
  12: "推广材料",
});
